package com.coincalf.exchange.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.coincalf.exchange.entity.TradeArea;
import com.coincalf.exchange.mapper.TradeAreaMapper;
import com.coincalf.exchange.service.TradeAreaService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 交易区 服务实现类
 * </p>
 *
 * @author qiang
 * @since 2018-05-12
 */
@Service
public class TradeAreaServiceImpl extends ServiceImpl<TradeAreaMapper, TradeArea> implements TradeAreaService {

    /**
     * 查询交易区域(缓存2分钟)
     * @param areaId 交易区域ID
     * @return
     */
    @Override
    public TradeArea queryTradeAreaFromCache(long areaId) {
        return baseMapper.selectById(areaId);
    }
}
